﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="RepFletes.aspx.cs" Inherits="DECOR.WebApp.RepFletes" Title="Untitled Page" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register assembly="IdeaSparx.CoolControls.Web" namespace="IdeaSparx.CoolControls.Web" tagprefix="cc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphHeader" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphMainMenu" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphTopMenu" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cphTopContent" runat="server">
</asp:Content>

<asp:Content ID="Content6" ContentPlaceHolderID="cphMain" runat="server">
    <asp:UpdatePanel ID="upMain" runat="server">
        <ContentTemplate>
            <div style="height:10px"></div>
            <table cellpadding="2" cellspacing="0" style="padding-left:10px; padding-right:100px;" class="tbl-detalle">
                 <tr>
                    <td>Tipo de Reporte</td>
                    <td>
                        <asp:DropDownList ID="cmbTipo" runat="server" Width="200">
                            <asp:ListItem Value="0" Text="Seleccione Tipo" Selected="True"/>
                            <asp:ListItem Value="1" Text="Flete"  />
                            <asp:ListItem Value="2" Text="Estiba" />
                        </asp:DropDownList>
                    </td>
                </tr>
                
                <tr>
                    <td>Fecha</td>
                    <td>
                        <asp:TextBox ID="txtFechaInicio" runat="server" Width="70"
                            CssClass="inputbox" ReadOnly="false" AutoPostBack="false" Font-Size="10" />
                        <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtFechaInicio"
                            Format="dd/MM/yyyy" CssClass="MyCalendar" />
                        a
                        <asp:TextBox ID="txtFechaFin" runat="server" Width="70"
                            CssClass="inputbox" ReadOnly="false" AutoPostBack="false" Font-Size="10" />
                        <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtFechaFin"
                            Format="dd/MM/yyyy" CssClass="MyCalendar" />
                        &nbsp;&nbsp;    
                        <asp:ImageButton ID="ibtnBuscar" runat="server" ImageAlign="Middle" ImageUrl="~/img/find.png" OnClick="ibtnBuscar_Click" />
                    </td>
                </tr>
            
                <tr>
                    <td>Of. Vtas</td>
                    <td>
                              <asp:DropDownList ID="cmbOfVtas" runat="server" Width="200"> </asp:DropDownList>
                    </td>
                </tr>
                
                <tr>
                    <td>Nivel de Reporte</td>
                    <td>
                        <asp:DropDownList ID="cmbNivel" runat="server" Width="200">
                            <asp:ListItem Value="0" Text="Seleccione" Selected="True"/>
                            <asp:ListItem Value="1" Text="Asesor Comercial"  />
                            <asp:ListItem Value="2" Text="Of. de Ventas" />
                        </asp:DropDownList>
                    </td>
                </tr>
                
            </table>
            <div style="height:10px"></div>
            
            
                <cc2:CoolGridView ID="gvFletes" runat="server" AutoGenerateColumns="False" CssClass="tbl-detalle"
                                  Width="880px"  GridLines="None" DefaultColumnWidth = "150px" Height="350px">
                    <AlternatingRowStyle BackColor="Beige" />
                    <HeaderStyle BackColor="Silver" Font-Size="12px" Height="20px" />
                    <Columns>
                        <asp:BoundField DataField="OfVentas" HeaderText="Of. Ventas" ItemStyle-Width = "80px" />
                        <asp:BoundField DataField="NonVendedor" HeaderText="Asesor" ItemStyle-Width = "300px"/>
                        <asp:BoundField DataField="FleTeorico" DataFormatString="{0:0,0.000}" HeaderText="Valor Teorico" ItemStyle-Width = "140px" ItemStyle-HorizontalAlign="Right"/>
                        <asp:BoundField DataField="FleReal" DataFormatString="{0:0,0.000}" HeaderText="Valor Real" ItemStyle-Width = "140px" ItemStyle-HorizontalAlign="Right" />
                        <asp:BoundField DataField="FacFlete" DataFormatString="{0:0,0.000}" HeaderText="Facturación" ItemStyle-Width = "140px" ItemStyle-HorizontalAlign="Right"/>
                        <asp:BoundField DataField="ValVtas" DataFormatString="{0:0,0.000}" HeaderText="Vtas. Vendedor" ItemStyle-Width = "140px" ItemStyle-HorizontalAlign="Right"/>
                        <asp:BoundField DataField="FleCobr" DataFormatString="{0:0,0.000}" HeaderText="Valor Cobrado" ItemStyle-Width = "140px" ItemStyle-HorizontalAlign="Right"/>
                    </Columns>
                    <BoundaryStyle BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px" />
                </cc2:CoolGridView>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

<asp:Content ID="Content7" ContentPlaceHolderID="cphFooter" runat="server">
</asp:Content>
